<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../css/common.css" />
<link rel="stylesheet" type="text/css" href="../css/index.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<!-- 탑 인클루드 -->
<jsp:include page="/main/header.jsp"></jsp:include>
<title>질문게시판</title>
<%@ page import="com.popcorn.board.controller.*" %>
<%@ page import="com.popcorn.board.dao.*" %>
<%@ page import="com.popcorn.board.model.*" %>
<body>
<%
	String idx = request.getParameter("idx");
	String userID = (String)session.getAttribute("login");
	BoardModel model = (BoardModel) request.getAttribute("model");
	String DATE = model.getREG_DTM();
%>
<br><br><br><br><br><br><br><br><br>
<div class="wrap">
	<h1>상세페이지</h1>
	<br><br>
	<div class="table">
		<div class="textinput"> 제목 : <%= model.getTITLE() %></div>
		<div class="textinput"> 분류 : <%= model.getFIELD() %></div>
		<div class="textinput">
			닉네임 : <span><%= model.getREG_ID() %></span>
			<span class="idout">
			글 번호 : <span><%= idx %></span>
			</span>
		</div>
			<table>
				<tr><td>
				 	<p align="left" style="text-align: left; padding-left: 10px;"><%= model.getCONTENT() %></p>
				</td></tr>
			</table>		
			
			<br><br><br>
			

			
			<p align="right" >
			<input TYPE="button" value="수정" onclick="window.location.href='BoardModifyDB.zo?idx=<%=idx %>'" >
			<input TYPE="button" value="삭제" onclick="window.location.href='BoardDeleteDB.zo?idx=<%=idx %>'" >
			<input TYPE="button" value="목록" onclick="window.location.href='BoardListDB.zo'" >
	</div>
</div>


</body>
</html>